home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 001-025 / disk_019 / blackjack / local.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  628b  |  22 lines

  1. /* LOCAL.H        Definitions for use with Learning to Program in C
  2.  */
  3.  
  4. #ifndef  FAIL
  5. #include <stdio.h>
  6. #define  FAIL           1
  7. #define  FOREVER        for (;;)
  8. #define  NO             0
  9. #define  SUCCEED        0
  10. #define  YES            1
  11. #define  bits           ushort
  12. #define  bool           int
  13. #define  metachar       short
  14. #define  tbool          char
  15. #define  ushort         unsigned short
  16. #define  getln(s, n)    ((fgets(s, n, stdin)==NULL) ? EOF : strlen(s))
  17. #define  ABS(x)         (((x) < 0) ? -(x) : (x))
  18. #define  MAX(x, y)      (((x) < (y)) ? (y) : (x))
  19. #define  MIN(x, y)      (((x) < (y)) ? (x) : (y))
  20. #endif
  21.  
  22.